package com.ccb.sc.common.modules.live.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseVersionEntity;
import com.ccb.sc.common.modules.live.enums.LiveStreamingOrderExchangeStatus;
import com.ccb.sc.common.modules.live.enums.LiveStreamingOrderSource;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 直播订单表
 * </p>
 *
 * @author ken
 * @since 2022-07-30
 */
@Getter
@Setter
@TableName("tb_live_streaming_order")
public class LiveStreamingOrder extends BaseVersionEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 订单来源 1抖音 2小红书
     */
    @TableField("source")
    private LiveStreamingOrderSource source;

    /**
     * 订单金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 可兑换积分
     */
    @TableField("exchange_points")
    private Integer exchangePoints;

    /**
     * 成长值
     */
    @TableField("growth_value")
    private BigDecimal growthValue;

    /**
     * 订单时间
     */
    @TableField("order_time")
    private LocalDateTime orderTime;

    /**
     * 收件人电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 收货地址
     */
    @TableField("address")
    private String address;

    /**
     * sku编码
     */
    @TableField("sku_code")
    private String skuCode;

    /**
     * sku条码
     */
    @TableField("sku_barcode")
    private String skuBarcode;

    /**
     * 商品编码
     */
    @TableField("goods_code")
    private String goodsCode;

    /**
     * 状态 0未转换 1已转换
     */
    @TableField("exchange_status")
    private LiveStreamingOrderExchangeStatus exchangeStatus;

    /**
     * 是否删除
     */
    @TableField("deleted")
    private Boolean deleted;

}
